package cn.iocoder.yudao.module.system.controller.admin.a_audio_and_video.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 上传分片文件 Request VO")
@Data
public class FileUploadChunkReqVO {

    @Schema(description = "文件分片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "文件分片不能为空")
    private MultipartFile file;

    @Schema(description = "文件路径", example = "yudaoyuanma.png")
    private String path;

    @Schema(description = "文件名", example = "yudaoyuanma.png")
    private String fileName;

    @Schema(description = "文件后缀", requiredMode = Schema.RequiredMode.REQUIRED, example = "mp4")
    private String ext;

    @Schema(description = "当前分片数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer chunkNumber;

    @Schema(description = "分片总数", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    private Integer chunkTotal;

    @Schema(description = "文件MD5", requiredMode = Schema.RequiredMode.REQUIRED,example = "")
    private String crypto;

    @Schema(description = "UUID", requiredMode = Schema.RequiredMode.REQUIRED)
    private String uid;
}
